[tool.poetry]
name = "avetti"
version = "0.0.1"
description = ""
authors = ["Fedor Tomchuk <folkitop@gmail.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
Django = "^5.0.3"
requests = "^2.31.0"
django-environ = "^0.11.2"
django-phonenumber-field = { extras = ["phonenumberslite"], version = "^7.3.0" }
psycopg = {extras = ["binary"], version = "^3.1.18"}
django-cleanup = "^8.1.0"
djangorestframework = "^3.14.0"
django-rest-knox = "^4.2.0"
django-cors-headers = "^4.3.1"
django-filter = "^24.1"

[tool.poetry.group.dev.dependencies]
django-stubs = {extras = ["compatible-mypy"], version = "^4.2.7"}
whitenoise = "^6.6.0"
django-watchfiles = "^0.1.1"

[tool.mypy]
plugins = ["mypy_django_plugin.main"]
ignore_missing_imports = true

[tool.django-stubs]
django_settings_module = "config.settings"

[tool.ruff]
# Set the maximum line length to 79.
line-length = 80

[tool.ruff.lint]
extend-select = [
    "E",  # pycodestyle errors
    "W",  # pycodestyle warnings
    "N",  #  pep8-naming
    "F",  # pyflakes
    "I",  # isort
    "B",  # flake8-bugbear
    "C4", # flake8-comprehensions
    "UP", # pyupgrade
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
